package net.wanglu.www.spdr.dao;

public abstract class DAOFactory {

	public static final int FILE = 1;
	
	public abstract CorpusDAO getCorpusDAO() throws Exception;
	
	public static DAOFactory getDAOFactory( int whichFactory ) throws Exception {
		switch ( whichFactory) {
		case FILE:
			return new FileFactory();
		default:
			return null;
		}
	}
}
